package com.ruoyi.inventory.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 配货单-明细对象 t_delivery_detail
 *
 * @author xwj
 * @date 2024-11-10
 */
@TableName("t_delivery_detail")
@Data
public class DeliveryDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 配货单id
     */
    @Excel(name = "配货单id")
    @ApiModelProperty("配货单id")
    private Long deliveryId;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    @ApiModelProperty("商品id")
    private Long productId;
    private String productName;
    /**
     * 单位id
     */
    @Excel(name = "单位id")
    @ApiModelProperty("单位id")
    private Long unitId;

    @TableField(exist = false)
    private String unitName;
    /**
     * 数量
     */
    @Excel(name = "数量")
    @ApiModelProperty("数量")
    private Double num;

    private Double sourceNum;

    /**
     * 单价
     */
    @Excel(name = "单价")
    @ApiModelProperty("单价")
    private Double price;

    private Double sourcePrice;
    /**
     * 金额
     */
    @Excel(name = "金额")
    @ApiModelProperty("金额")
    private Double amount;

    private Double buyPrice;
    private Double buyAmount;

    @TableField(exist = false)
    private String customerName;

    /** 创建人id */
    @Excel(name = "创建人id")
    @ApiModelProperty("创建人id")
    private Long createId;
    private Date createTime;
    private String createBy;

    /** 更新人id */
    @Excel(name = "更新人id")
    @ApiModelProperty("更新人id")
    private Long updateId;
    private Date updateTime;
    private String updateBy;

    private String remark;


    @TableField(exist = false)
    private String source;


}
